Introduction and use of bson in MongoDB
This article mainly introduces the introduction and use of bson in MongoDB. This article describes what bson is, how bson is used in MongoDB, and several BSON examples. For more information, see
1. What is
This article mainly introduced the Bson introduction and the use example in the MongoDB, this article explained what is Bson, Bson in the MongoDB use, several Bson example and so on content, needs the friend may refer to under
One, what is Bson
One, what is Bson
Bson is a binary form of class JSON, called Binary JSON, which, like JSON, supports embedded document objects and array objects, but Bson has some data types that JSON does not have, such as date and bindata types.
Bson can be
Introduction to MongoDB bson
1. What is bson?
Bson is a type of JSON binary storage format, binary JSON for short. It is the same as JSON and supports embedded document objects and array objects, however, bson has some data types not available in
intends to write a blog system with Nodejs, found that Nodejs still exist a lot of pits. The following error question was encountered when using MongoDB:{[Error:cannot find module '. /build/release/bson '] Code: ' Module_not_found '}
Specific error content:' .. /build/release/bson'module_not_found' } jsusing Pure JS Version The first step:Find Module MONGODB. Node_modules\mongodb\node_modules\bson\ext\index.jsand change the path of the Bson referenceBson = require ('.. /build/
MongoDB uses bson as the file data storage and network transmission format, first impression
bson is a bit like blob , : Mongo database bson internal . This means MongoDB Yes " reached " bson object, or even
Data file structureExtentWithin each data file, MongoDB organizes the data of the stored Bson document and the B-tree index into the logical container "Extent". As shown (My-db.1 and my-db.2 are the two data files of the database):
A file can
One, Windows download installation1. To http://www.mongodb.org/downloads download, MongoDB is installed by default in C:\Program Files\mongodb directory, to F:\Office\Database\ Mongodbdata New Mongodbdata directory is used to store mongodb
This is a creation in
Article, where the information may have evolved or changed.
This article focuses on the use of MgO, only a simple introduction of MongoDB.
MongoDB Features
Mongdb Brief
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.